package com.luohh.treeroom.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.luohh.treeroom.dto.BasePage;
import com.luohh.treeroom.dto.BasePageResult;
import com.luohh.treeroom.dto.BaseResult;
import com.luohh.treeroom.entity.GoodsInfo;
import com.luohh.treeroom.service.IGoodsInfoService;
import com.luohh.treeroom.service.impl.GoodsInfoServiceImpl;
import com.luohh.treeroom.util.JsonObjUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 罗辉煌
 * @since 2020-02-07
 */
@Api(value = "商品")
@RestController
@RequestMapping("/goods-info")
public class GoodsInfoController {

    @Autowired
    IGoodsInfoService goodsInfoService;

    @RequestMapping(value = "/a",method = {RequestMethod.POST})
    public BaseResult getinfo(){
        return goodsInfoService.getinfo(1);
    }
}